#!/usr/bin/env python
# coding: utf-8

from init_db import NSDb
import time

db = NSDb()

db.run_all_init_func()

# 测试数据库使用

if __name__ == '__main__':
    # print db.get_server_list()
    # print db.get_info_list_by_ip('1.1.1.1', 0, 2)
    print time.time()
    print time.localtime(time.time())
    print time.strftime('%Y-%m-%d', time.localtime(time.time()))
